// import './assets/main.css'
import 'element-plus/dist/index.css'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import DataVVue3 from '@kjgl77/datav-vue3'
import { createApp } from 'vue'
import { createPinia } from 'pinia'


import './mockjs'
// 创建 Pinia 实例
const pinia = createPinia();
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


import App from './App.vue'
import router from './router'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}



pinia.use(piniaPluginPersistedstate);
app.use(createPinia())
app.use(pinia)
app.use(router)
app.use(DataVVue3)
app.mount('#app')

